import { BaseService, Service, Permission } from "@/cool";

@Service("app/release")
export default class extends BaseService {
	@Permission("history")
	history(params) {
		return this.request({
			url: "/history",
			method: "GET",
			params
		});
	}

	@Permission("enable")
	enable(params) {
		return this.request({
			url: "/enable",
			method: "POST",
			data: {
				...params
			}
		});
	}

	@Permission("options")
	options(params) {
		return this.request({
			url: "/options",
			method: "GET"
		});
	}
}
